package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.Review")
@Data
@TableName(value = "review")
public class Review {
    /**
     * 评论id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "评论id")
    private Long id;

    /**
     * 店铺
     */
    @TableField(value = "store_id")
    @ApiModelProperty(value = "店铺")
    private Integer storeId;

    /**
     * 商品id
     */
    @TableField(value = "goods_id")
    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    /**
     * 购买者id
     */
    @TableField(value = "buyer_id")
    @ApiModelProperty(value = "购买者id")
    private Long buyerId;

    /**
     * 处理订单者id
     */
    @TableField(value = "deal_id")
    @ApiModelProperty(value = "处理订单者id")
    private Long dealId;

    /**
     * 评论类容
     */
    @TableField(value = "content")
    @ApiModelProperty(value = "评论类容")
    private String content;

    /**
     * 图1
     */
    @TableField(value = "pic1")
    @ApiModelProperty(value = "图1")
    private String pic1;

    /**
     * 图2
     */
    @TableField(value = "pic2")
    @ApiModelProperty(value = "图2")
    private String pic2;

    /**
     * 图3
     */
    @TableField(value = "pic3")
    @ApiModelProperty(value = "图3")
    private String pic3;

    /**
     * 图4
     */
    @TableField(value = "pic4")
    @ApiModelProperty(value = "图4")
    private String pic4;

    /**
     * 评论类型，0：好评，1：中评，3：差评
     */
    @TableField(value = "type")
    @ApiModelProperty(value = "评论类型，0：好评，1：中评，3：差评")
    private Integer type;
}